POV-Ray : Newsgroups : povray.binaries.images : Porous Rock : Re: Porous Rock Server Time
19 May 2024 09:58:56 EDT (-0400)
  Re: Porous Rock  
From: Rob Richards
Date: 12 Jul 2008 07:20:32
Message: <in4h74tllnc5r82ropj3sg006boujelu77@4ax.com>
Wow, thats fantastic. Can I ask how the isosurface was defined ? i.e.
is it a sphere - this pattern ? Or am i way off base !

On Fri, 4 Jul 2008 21:06:51 +0100, "Tek" <tek### [at] evilsuperbraincom>
wrote:

>I was messing around with some multifractals and came up with this. It's 
>based on a crackle form <1,0,0> repeated like a perlin multi-fractal over 8 
>octaves. The heightfield renders pretty quick (19 minutes) but the isosurfae 
>took an amazing 9 hours!
>
>Here's the code for the pattern, the Curve value adjusts how the holes look. 
>Have a look at p.b.a to see what happens when I animate that value!:
>
>pigment {
> #local Curve=1/8; // small values make it look porous
> #local Omega=0.5;
> #local Lambda=2;
> #local Octaves=8;
> pigment_pattern {
>  average
>  pigment_map {
>   #local octave=0;
>   #while ( octave < Octaves )
>    [pow(Omega,octave)
>     pigment_pattern {
>      crackle form <.9,0,0>
>      scale pow(Lambda,-octave)
>      colour_map {[0 rgb 1][1 rgb 0]}
>     }
>     poly_wave 1/Curve
>    ]
>    #local octave=octave+1;
>   #end
>  }
> }
> poly_wave Curve
> colour_map {[0 rgb 1][1 rgb 0]}
>}


Post a reply to this message

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.